<template>
  <div>
    <img src="../../public/22486810.webp" alt="" />
    <div class="box">
      <div class="head">
        <img src="../../public/202103.webp" alt="">
        <p>游客</p>
        <span>去登录</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "My",
  props: {},
};
</script>

<style scoped lang="less">
img {
  margin-top: -60%;
  width: 100%;
  border-radius: 20%;
}
div {
  position: relative;
  width: 100%;
}
.box {
  position: absolute;
  top: 40%;
  left: 10%;
  width: 80%;
  height: 45vw;
  background-color: #fff;
  border: 1px solid #ccc;
}
.head{
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translate(-50%);
  width: 20vw;
  height: 20vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  span{
    width: 17vw;
    text-align: center;
    background-color: green;
    color: #fff;
  }
  
 
  // border-image: url(../../public/202103.webp);
  img{
    width: 100%;
    height: 100%;
    margin-top: 4%;
     border-radius: 50%;
     border: 1px solid #ccc;
  }
}
</style>
